package com.yonyou.pmclouds.auditlog.service;

import com.yonyou.pmclouds.auditlog.entity.AuditLogVO;
import com.yonyou.pmclouds.basecom.exception.BusinessException;

import java.util.Map;

public interface IAuditLogQuery {
    /**
     * 通过主键查询
     *
     * @param id
     * @return
     * @throws BusinessException
     */
    AuditLogVO getById(String id) throws BusinessException;

    /**
     * 通过整改记录查询
     *
     * @param pkRepairLog
     * @return
     * @throws BusinessException
     */
    AuditLogVO getByPkRepairLog(String pkRepairLog) throws BusinessException;

    /**
     * 通过单据查询验收记录
     *
     * @param pkBIll
     * @return map（key:整改记录主键，value:验收记录）
     * @throws BusinessException
     */
    Map<String, AuditLogVO> getByPkBill(String pkBIll) throws BusinessException;
}
